<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/resources/theme/metro-green/easyui.css" />
<link rel="stylesheet" type="text/css" href="/resources/theme/icon.css" />
<link rel="stylesheet" type="text/css" href="/resources/css/ui_custom.css" />
<link rel="stylesheet" type="text/css" href="/resources/css/design.css" />
<link rel="stylesheet" type="text/css" href="/resources/css/form.css" />
<title>담당자 목록</title>
<script type="text/javascript" src="/resources/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="/resources/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/resources/js/jquery.jclock.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('#west_collapse').click(function(){
		 $('.layout_center_inwrap').layout('collapse','west'); 
		 $('.layout_center_inwrap>div.panel.layout-expand').attr('title','Open');
	});
	$('.layout_center_inwrap').layout('panel','center').panel({
		onResize:function(){
			step1();
			step2();
		}
	});
	
	//메뉴
	var wi = $(window).width();
    if (wi <= 1024){
    	$('.nav tr td.head_side').css( 'width', '150px');
     }
    else if (wi <= 1440){
    	$('.nav tr td.head_side').css( 'width', '250px');
     }
    else if (wi <= 1600){
    	$('.nav tr td.head_side').css( 'width', '300px');
     }
    else if (wi <= 1920){
    	$('.nav tr td.head_side').css( 'width', '400px');
     }
	$(window).resize(function() {
		var wi = $(window).width();
	    if (wi <= 1024){
	    	$('.nav tr td.head_side').css( 'width', '150px');
	     }
	    else if (wi <= 1440){
	    	$('.nav tr td.head_side').css( 'width', '250px');
	     }
	    else if (wi <= 1600){
	    	$('.nav tr td.head_side').css( 'width', '300px');
	     }
	    else if (wi <= 1920){
	    	$('.nav tr td.head_side').css( 'width', '400px');
	     }
	});
});
	
	</script>
</head>

<%
String empList = (String)request.getAttribute("empList");
if(empList.isEmpty() == false){
	System.out.print("\n empList : "+empList+"\n");
}
else System.out.print("\n employeeList : null");

%>
			<div data-options="region:'center',border:false" class="layout_center_center">
				 <th>담당자</th>
	             <td><input type="text" class="login_text" id="EmpName" name="EmpName"></td>
				
				<table id="tt" class="easyui-datagrid" data-options="singleSelect:true,collapsible:true,rownumbers:true,fitColumns:true,data:data,pagination:true,fit:true,autoRowHeight:true">
			        <thead>
			            <tr>
			                <th field="EmpIdx" width="10%"><b>EmpIdx</b></th>
			                <th field="EmpName" width="10%"><b>EmpName</b></th>
			           </tr>
			        </thead>
			     </table>
			</div>		
			
<script type="text/javascript">
/* $(".nav li a.menu_07").addClass('active'); */
var data = <%=empList%>;
</script>